using Geek.Server.Core.Actors;
using Geek.Server.Core.Net.Http;

namespace Server.Logic.WebServer
{
    [HttpMsgMapping(WebRoleCreateNotify.RouteKey)]
    public class WebRoleCreateNotifyHandler : BaseHttpHandler<WebRoleCreateNotify>
    {
        protected override async Task<HttpResponse> Execute(string ip, WebRoleCreateNotify req)
        {
            var compAgent = await ActorMgr.GetCompAgent<WebServerCompAgent>();
            return await compAgent.ExecuteRoleCreateNotify(req);
        }
    }
}